package com.example.elm_server_api.domain;

import java.io.Serializable;
import lombok.Data;

/**
 * 送餐员审核信息表
 * @TableName deliver_lincense
 */
@Data
public class DeliverLincense implements Serializable {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 送餐员ID
     */
    private Integer deliverId;

    /**
     * 身份证号码
     */
    private String idcardNum;

    /**
     * 身份证正面
     */
    private String idcardImg;

    /**
     * 身份证背面
     */
    private String idcardImgBack;

    /**
     * 缴纳的保证金
     */
    private Integer bondMoney;

    /**
     * 健康证
     */
    private String healthImg;

    /**
     * 其他的图片
     */
    private String images;

    /**
     * 加入时间
     */
    private Integer addTime;

    /**
     * 状态
     */
    private Integer status;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DeliverLincense other = (DeliverLincense) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDeliverId() == null ? other.getDeliverId() == null : this.getDeliverId().equals(other.getDeliverId()))
            && (this.getIdcardNum() == null ? other.getIdcardNum() == null : this.getIdcardNum().equals(other.getIdcardNum()))
            && (this.getIdcardImg() == null ? other.getIdcardImg() == null : this.getIdcardImg().equals(other.getIdcardImg()))
            && (this.getIdcardImgBack() == null ? other.getIdcardImgBack() == null : this.getIdcardImgBack().equals(other.getIdcardImgBack()))
            && (this.getBondMoney() == null ? other.getBondMoney() == null : this.getBondMoney().equals(other.getBondMoney()))
            && (this.getHealthImg() == null ? other.getHealthImg() == null : this.getHealthImg().equals(other.getHealthImg()))
            && (this.getImages() == null ? other.getImages() == null : this.getImages().equals(other.getImages()))
            && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDeliverId() == null) ? 0 : getDeliverId().hashCode());
        result = prime * result + ((getIdcardNum() == null) ? 0 : getIdcardNum().hashCode());
        result = prime * result + ((getIdcardImg() == null) ? 0 : getIdcardImg().hashCode());
        result = prime * result + ((getIdcardImgBack() == null) ? 0 : getIdcardImgBack().hashCode());
        result = prime * result + ((getBondMoney() == null) ? 0 : getBondMoney().hashCode());
        result = prime * result + ((getHealthImg() == null) ? 0 : getHealthImg().hashCode());
        result = prime * result + ((getImages() == null) ? 0 : getImages().hashCode());
        result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", deliverId=").append(deliverId);
        sb.append(", idcardNum=").append(idcardNum);
        sb.append(", idcardImg=").append(idcardImg);
        sb.append(", idcardImgBack=").append(idcardImgBack);
        sb.append(", bondMoney=").append(bondMoney);
        sb.append(", healthImg=").append(healthImg);
        sb.append(", images=").append(images);
        sb.append(", addTime=").append(addTime);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}